package com.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

import java.io.Console;

/**
 * @Author 刘志伟
 * @create 2022/9/22 15:30
 */
@Component
public class RobotListener{

    @EventListener
    public void handle(RobotEvent event) {
        System.out.println("do sth"+event.getName());
    }
}
